<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://java.sun.com/jsp/jstl/core">
<h:head>
	<link rel="shortcut icon" type="image/x-icon"
		href="#{request.contextPath}/resources/OptimusIco2.ico" />
	<title>Login</title>
</h:head>
<h:body >
	<h:graphicImage value="/resources/Optimusnovo.jpg" />
	<center>
		<h:outputText value="Usuário ou senha incorretos!"
			rendered="#{param.erro}" style="color: darkred" />
	</center>
	<form action='j_spring_security_check' method="post">
		<h:panelGrid columns="2" cellpadding="5">
			<p:outputLabel for="j_username" value="Login: " />
			<p:inputText id="j_username" required="true"/> 

			<p:outputLabel for="j_password" value="Senha: " />
			<p:password id="j_password" required="true"/>
			<h:commandButton value="Login" />
		</h:panelGrid>
	</form>
</h:body>
</html>